package ui.widget;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.Box;
import javax.swing.BoxLayout;

import ui.util.YPUIUtil;

public class XPanel extends TransparentPanel {

	public XPanel() {
		this(50);
	}
	
	public XPanel(int heigh) {
		this(YPUIUtil.getScreenWidth(),heigh);
	}
	public XPanel(int width,int heigh) {
		setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
		setPreferredSize(new Dimension(width, heigh));
		setMaximumSize(new Dimension(YPUIUtil.getScreenWidth(), heigh));
		setSize(new Dimension(width, heigh));
	}
}
